package com.tedu.springboot13.web.controller;

import com.tedu.springboot13.service.EmpService;
import com.tedu.springboot13.web.pojo.JosnResult;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class EmpController {
    @Autowired
    EmpService empService;

    @RequestMapping("/list")
    public JosnResult add() {
        return new JosnResult(empService.select());

    }
}
